<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.min.js"></script>
    <link href="css/mui.min.css" rel="stylesheet"/>
    <script type="text/javascript" charset="utf-8">
      	mui.init();
    </script>
</head>

	
	

<body>
	<header class="mui-bar mui-bar-nav">
		<h1 class="mui-title">首页</h1>
			</header>	
	
		<div class="mui-content">
				<div class="mui-slider">
				  <div class="mui-slider-group mui-slider-loop" >
				    <!--支持循环，需要重复图片节点-->
				    <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="jpg/4.webp" /></a></div>
				    <div class="mui-slider-item"><a href="#"><img src="jpg/1.webp" /></a></div>
				    <div class="mui-slider-item"><a href="#"><img src="jpg/2.jpg" /></a></div>
				    <div class="mui-slider-item"><a href="#"><img src="jpg/3.webp" /></a></div>
				    <div class="mui-slider-item"><a href="#"><img src="jpg/4.webp" /></a></div>
				    <!--支持循环，需要重复图片节点-->
					<div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="jpg/1.webp" /></a></div>
				</div>
			</div>
		</div>
			<button type="button" class="mui-btn mui-btn-danger">红色</button>
			<button type="button" class="mui-btn mui-btn-warning mui-btn-outlined">黄色</button>
			<button type="button"  class="mui-btn mui-btn-warning xinjianya">确认</button>
			
			
	<script>
		// 添加单机事件,tap单击事件
		mui(document.body).on('tap',  '.xinjianya', function(e) {
		// 切换加载状态
		mui(this).button('loading');
	
		setTimeout(function() {
		// 按钮恢复
		mui(this).button('reset');
		// 2000是2秒后
	    }.bind(this), 2000);
	});
	
	
	var gallery = mui('.mui-slider');
	gallery.slider({
	  interval:5000//自动轮播周期，若为0则不自动播放，默认为0；
	});
	</script>
	

</body>
</html>